package com.qf.talk.model;

import java.io.Serializable;

/**
 * friend_relation
 * @author 
 */
public class FriendRelation implements Serializable {
    private Long userId;

    private Long friendId;

    private String markName;

    private Long firendGruopId;

    private static final long serialVersionUID = 1L;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getFriendId() {
        return friendId;
    }

    public void setFriendId(Long friendId) {
        this.friendId = friendId;
    }

    public String getMarkName() {
        return markName;
    }

    public void setMarkName(String markName) {
        this.markName = markName;
    }

    public Long getFirendGruopId() {
        return firendGruopId;
    }

    public void setFirendGruopId(Long firendGruopId) {
        this.firendGruopId = firendGruopId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        FriendRelation other = (FriendRelation) that;
        return (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getFriendId() == null ? other.getFriendId() == null : this.getFriendId().equals(other.getFriendId()))
            && (this.getMarkName() == null ? other.getMarkName() == null : this.getMarkName().equals(other.getMarkName()))
            && (this.getFirendGruopId() == null ? other.getFirendGruopId() == null : this.getFirendGruopId().equals(other.getFirendGruopId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getFriendId() == null) ? 0 : getFriendId().hashCode());
        result = prime * result + ((getMarkName() == null) ? 0 : getMarkName().hashCode());
        result = prime * result + ((getFirendGruopId() == null) ? 0 : getFirendGruopId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", userId=").append(userId);
        sb.append(", friendId=").append(friendId);
        sb.append(", markName=").append(markName);
        sb.append(", firendGruopId=").append(firendGruopId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}